<?php

namespace app\admin\model\sales;

use think\Model;

/**
 * Custallocns
 */
class Custallocns extends Model
{
    // 表名
    protected $name = 'sales_custallocns';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;


    public function transidAllocfromTable(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(\app\admin\model\sales\Debtortrans::class, 'transid_allocfrom', 'id');
    }

    public function transidAlloctoTable(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(\app\admin\model\sales\Debtortrans::class, 'transid_allocto', 'id');
    }
}